<%-- 
    Document   : index
    Created on : 11.02.2013, 22:42:42
    Author     : Jarik
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <c:out value="${user}, Hello!"/>
         <c:out value="${currency}"/>
        <form name="RegisterBankAccForm" method="POST" action="Controller">
            <input type="hidden" name="command" value ="registerNewBankAcc"/>
            <table>
                <tr>
                    <td>Account number</td>
                    <td><input type="text" name="accNum"></td>
                </tr>

                <tr>
                        <td>Currency</td>
                        <td>
                            <select name="currency">
                                <c:forEach items="${currency}" var="cur">
                                    <option value="${cur.getShortName()}">${cur.getShortName()} </option>                       
                                </c:forEach>
                            </select></td>
                    </tr>
                <tr>
                    <td>Bank Name</td>
                    <td><input type="text" name="bankName"></td>
                </tr>
                <tr>
                    <td>SWIFT</td>
                    <td><input type="text" name="swift"></td>
                </tr>
                <tr>
                    <td>Correspondent Bank</td>
                    <td><input type="text" name="correspondentBank"></td>
                </tr> 
                <tr>
                    <td><input type="hidden" name="userId" value ="${sessionScope.user.getUserid()}"></td>
                </tr>

            </table>
            <br>
            <input type="submit" value="Add">
        </form>
    </body>

</html>
